﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Sispe.Entities;
using Sispe.Repository;
using Microsoft.Practices.Unity;

namespace Sispe.BussinesLogic
{
    public class TelefonoBL:ITelefonoBL
    {
        [Dependency]
        public ITelefonoRepository telefonoDAO { get; set; }

        public List<TELEFONO> GetAllFromTelefono()
        {
            return telefonoDAO.GetAllFromTelefono();
        }

        public List<TELEFONO> GetAllFromTelefonoByPersona(int dni)
        {
            return telefonoDAO.GetAllFromTelefonoByPersona(dni);
        }
    }
}
